<?php 
/* SVN FILE: $Id$ */
/* Quizmaster Test cases generated on: 2009-09-09 21:34:39 : 1252546479*/
App::import('Model', 'Quizmaster');

class QuizmasterTestCase extends CakeTestCase {
	var $Quizmaster = null;
	var $fixtures = array('app.quizmaster', 'app.registration');

	function startTest() {
		$this->Quizmaster =& ClassRegistry::init('Quizmaster');
	}

	function testQuizmasterInstance() {
		$this->assertTrue(is_a($this->Quizmaster, 'Quizmaster'));
	}

	function testQuizmasterFind() {
		$this->Quizmaster->recursive = -1;
		$results = $this->Quizmaster->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Quizmaster' => array(
			'id'  => 1,
			'registration_id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet',
			'can_do_STVA'  => 1,
			'can_do_STVB'  => 1,
			'can_do_STRA'  => 1,
			'can_do_STRB'  => 1,
			'can_do_YTVA'  => 1,
			'can_do_YTVB'  => 1,
			'can_do_YTRA'  => 1,
			'can_do_YTRB'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>